package com.itheima.test7;

public class Test7 {
    public static void main(String[] args) {
        // Lambda
        useInter(() -> System.out.println("Lambda 执行了"));

        useInter(new Inter() {
            @Override
            public void show() {
                System.out.printf("匿名内部类的 show 方法");
            }
        });
    }

    public static void useInter(Inter inter) {
        inter.show();
    }
}

interface Inter {
    void show();
}
